package org.domain.sisteste.entity;

// Generated 12/11/2013 11:37:44 by Hibernate Tools 3.4.0.CR1

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;

/**
 * TtFormaimpressao generated by hbm2java
 */
@Entity
@Table(name = "tt_formaimpressao")
public class TipoFormaImpressao implements java.io.Serializable {

	private Integer idFormaImpressao;
	private String noFormaImpressao;
	private Set<Software> tbSoftwares = new HashSet<Software>(0);

	public TipoFormaImpressao() {
	}

	public TipoFormaImpressao(String noFormaImpressao) {
		this.noFormaImpressao = noFormaImpressao;
	}

	public TipoFormaImpressao(String noFormaImpressao, Set<Software> tbSoftwares) {
		this.noFormaImpressao = noFormaImpressao;
		this.tbSoftwares = tbSoftwares;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID_FormaImpressao", unique = true, nullable = false)
	public Integer getIdFormaImpressao() {
		return this.idFormaImpressao;
	}

	public void setIdFormaImpressao(Integer idFormaImpressao) {
		this.idFormaImpressao = idFormaImpressao;
	}

	@Column(name = "NO_FormaImpressao", nullable = false, length = 30)
	@NotNull
	@Length(max = 30)
	public String getNoFormaImpressao() {
		return this.noFormaImpressao;
	}

	public void setNoFormaImpressao(String noFormaImpressao) {
		this.noFormaImpressao = noFormaImpressao;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "ttFormaimpressao")
	public Set<Software> getTbSoftwares() {
		return this.tbSoftwares;
	}

	public void setTbSoftwares(Set<Software> tbSoftwares) {
		this.tbSoftwares = tbSoftwares;
	}

}
